/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package cn.hermit.data.xml.model;

/**
 * Java model of XML Comment.
 * 
 * @author Jack Gao (Chinese name : GAO JIANGUO, Email : linux.gjg@gmail.com)
 * @date 19 Jun, 2014
 */
public final class XmlComment extends XmlText {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3221310308653640345L;

	XmlComment() {
	}

	/**
     * Serialize XML Comment to XML string.
     */
	@Override
	public String toString() {
		StringBuilder b = new StringBuilder();
		b.append("<!--");
		b.append(super.toString());
		b.append("-->");
		return b.toString();
	}
	
	@Override
	public boolean isComment() {
		return true;
	}
	
	@Override
	public boolean isPureText() {
		return false;
	}
}